Re: How to create an aggregate?

Поиск
Список
Период
Сортировка
От Ray Aspeitia
Тема Re: How to create an aggregate?
Дата
Msg-id p06002000bd33ea2982b9@[192.168.5.55]
обсуждение исходный текст
Ответ на Re: How to create an aggregate?  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-sql
So the AGGREGATE function also references parameters like a regular 
SQL function. Good to know.

Figured I'd ask anyway. Thanks for the info Tom, Greg.

Ray A.


>
>  > I also would like to pass the delimiter to the aggregate as a parameter
>>  and I am not sure if it can handle that.
>
>It can't.  You'll need a single-argument finalfunc that hardwires the
>delimiter, ie,
>        array_to_string($1, '|')
>
>            regards, tom lane


-- 
Ray Aspeitia
Sells Printing Company LLC
aspeitia@sells.com
(262) 317-8314


В списке pgsql-sql по дате отправления:

Предыдущее
От: Smita Marda
Дата:
Сообщение: org.postgresql.PG_Stream.ReceiveChar(PG_Stream.java:143)
Следующее
От: Kaloyan Iliev Iliev
Дата:
Сообщение: Problems with UNION ALL and ORDER BY